﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QiHe
{
    public partial class Change_EGN : Form
    {
        DataSet HSPEGNList;
        string Flag;
        public Change_EGN(string TSKFLag)
        {
            InitializeComponent();
            Flag = TSKFLag;
            MedEQ.Service1 sop = new MedEQ.Service1();
            HSPEGNList = sop.Serv_HSP_Egn_List(DataTemp.HSPID);

            comboBox1.DataSource = HSPEGNList.Tables[0];
            comboBox1.DisplayMember = "ChineseName";
            comboBox1.ValueMember = "ID";


        }

        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {

        }

        private void button1_Click(object sender, EventArgs e)
        {


              MedEQ.Service1 sop = new MedEQ.Service1();
           

            MedEQ.MySoapHeader Header = new MedEQ.MySoapHeader();//web引用创建soap头对象(改成您自己的)
            //设置soap头变量
            Header.UserName = "lee";
            Header.PassWord = "cmu4hlee1008";
            sop.MySoapHeaderValue = Header;


            sop.Set_Task_Execution_EGN(Flag, comboBox1.SelectedValue.ToString());
            this.Close();
            
        }
    }
}
